<template>
  <div>
    <div id="chatDialog"></div>
  </div>
</template>

<script setup>
  import { onMounted } from 'vue';
  import { useScript } from '@/hooks/web/useScript';

  onMounted(() => {
    window.chat_user_id = 'aeHF2APDEA1AHGE3FG';
    window.addEventListener('newMsg', (e) => {
      console.log('newMsg', e);
      window.alert(e);
    });
    useScript({
      src: 'https://server38.raisound.com/ai/main_js/chat-widget.js',
    });
  });
</script>

<style lang="scss"></style>
